<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.yaodian100.core.common.utils.ServerValue"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="/taglibs.jsp"%>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>
	耀点100中台管理系统
	商品管理
</title>		
</head>
	<body>	
<h1>品牌列表</h1>
<div class="data-form"><s:form action="list.do" method="post">
	说明：请先做搜寻，找不到该品牌时才能新增品牌，以避免重复新增品牌资料。<br/>
	<b>品牌名称：</b>
	<input name="brandNameParam" id="brandNameParam" type="text" title="品牌名称" size="30" value="${brandNameParam}">
	<s:select name="brandStatusParam" value="%{brandStatusParam}" headerKey="" headerValue="全部"
	list="statusTypeMenu.options" listKey="key" listValue="value.name" />	
	<input type="button" value="搜寻" onclick="this.form.submit();" />
</s:form>
</div><br/>
<!--<s:form action="delBrand.do" method="post" id="productForm">-->
<table class="tb-1" width="100%">
	<thead>
		<tr>
        	<!-- <th>删除</th> -->
        	<th>品牌代码</th>
			<th>中文名称</th>
			<th>英文名称</th>
			<th>品牌同义词</th>
			<th>状态</th>
		</tr>
	</thead>
	<tbody>
			<c-rt:forEach items="${brands}" var="brand" varStatus="rows_index">  
			<tr class="${rows_index.count % 2 == 0 ? 'bg-yl' : ''}">
            	<!-- <td><input name="brandDelete" type="checkbox" value="${brand.brandId}" /></td>-->
				<td><a href="<%=ServerValue.getMidContextPath()%>/brand/edit.do?brandId=${brand.brandId}" />${brand.brandId}</a></td>	
				<td>${brand.brandName}</td>
				<td>${brand.brandEname}</td>
				<td>${brand.brandSynonym}</td>				
				<td>${brand.brandStatus=='Y'?'启用':"<span class='txt-rd'>停用</span>"}</td>				
	 		 </tr>             
			</c-rt:forEach>
	</tbody>
</table>
<!-- <br /><input type="submit" value="批次删除"/> -->
<yaodian100:pageutil link="list.do" pagerObj="${pager}" />
<!--</s:form> -->
<s:actionmessage escape="false"/>
</body>
</html>

		
